<?php

class RestServer {

    private $restler;

    public static function __construct() {
        $this->restler = new Restler();
        $this->restler->addAPIClass('CepController', '');
        $this->restler->setSupportedFormats('JsonFormat', 'XmlFormat', 'YamlFormat', 'PlistFormat', 'AmfFormat');
        $this->restler->addAuthenticationClass('SimpleAuth');
    }

    public function getRestler() {
        return $this->restler;
    }

}

?>
